import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

// 查询所有施工队店铺列表
export function listSuperTeamSupplier(query){
  return request({
    url: '/super/superTeamSupplier/list',
    method: 'get',
    params: query
  })
}

// 店铺的状态
export function changeSuperTeamStatus(supplierId,supplierStatus,customerId){
  const data ={
    supplierId:supplierId,
    supplierStatus:supplierStatus,
    customerId:customerId,
  };

  return request({
    url: '/super/superTeamSupplier/changeSuperTeamStatus',
    method: 'put',
    data: data
  })
}

// 查询所有施工队店铺内部分类列表
export function listSuperTeam(query){
  return request({
    url: '/super/superTeamSupplier/superTeamList',
    method: 'get',
    params: query
  })
}

// 查询施工队人员信息列表
export function listSuperTeamInfo(query){
  return request({
    url: '/super/superTeamSupplier/selectSuperTeamInfoList',
    method: 'get',
    params: query
  })
}

// 查询施工队人员下的订单信息列表
export function listSuperOrderTeam(query){
  return request({
    url: '/super/superTeamSupplier/selectSuperOrderTeamList',
    method: 'get',
    params: query
  })
}
